﻿<%@ Page Title="" Language="C#" MasterPageFile="~/RA/RA.Master" AutoEventWireup="true" CodeBehind="RA_Assigned.aspx.cs" Inherits="TAMS.RA.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .style3
    {
        color: #3366FF;
        font-weight: bold;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p class="style3">
        Assigned Examinations</p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" 
        onselectedindexchanged="GridView1_SelectedIndexChanged" 
        
        style="margin-top: 0px" CellPadding="4" ForeColor="#333333" 
        GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:Button ID="Details" runat="server" Text="Deny" CommandName="Details"  OnClick="delete_click" CssClass="button"/>
                </ItemTemplate>            
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Wrap="True" Font-Bold="True" 
            ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
   
    ConnectionString="<%$ ConnectionStrings:tamsConnectionString %>" 
    ProviderName="<%$ ConnectionStrings:tamsConnectionString.ProviderName %>" 
    
        
        SelectCommand="SELECT E.exId as 'Exam Id', E.e_type as 'Type', Date_FORMAT(E.e_startTime, '%d.%m.%y %T') as 'Begin', Date_FORMAT(E.e_endTime, '%T') as 'end', P.sid as 'Proctor Id', P.secCorsId as 'Section&Course Id' FROM proctors P, examination E WHERE P.sid = @asd AND P.exId = E.exId" >
     <selectparameters>
     <asp:sessionparameter name ="asd" SessionField = "userName" DefaultValue="20000000" />

    </selectparameters> 

    </asp:SqlDataSource>
    <asp:Label ID="Label1" runat="server" Text="No Examinaitons are assigned" 
        Visible="False"></asp:Label>
    </asp:Content>
